package com.mentaleye.dal.model;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class TradesRecordExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public TradesRecordExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andTrxOrderNoIsNull() {
            addCriterion("trx_order_no is null");
            return (Criteria) this;
        }

        public Criteria andTrxOrderNoIsNotNull() {
            addCriterion("trx_order_no is not null");
            return (Criteria) this;
        }

        public Criteria andTrxOrderNoEqualTo(String value) {
            addCriterion("trx_order_no =", value, "trxOrderNo");
            return (Criteria) this;
        }

        public Criteria andTrxOrderNoNotEqualTo(String value) {
            addCriterion("trx_order_no <>", value, "trxOrderNo");
            return (Criteria) this;
        }

        public Criteria andTrxOrderNoGreaterThan(String value) {
            addCriterion("trx_order_no >", value, "trxOrderNo");
            return (Criteria) this;
        }

        public Criteria andTrxOrderNoGreaterThanOrEqualTo(String value) {
            addCriterion("trx_order_no >=", value, "trxOrderNo");
            return (Criteria) this;
        }

        public Criteria andTrxOrderNoLessThan(String value) {
            addCriterion("trx_order_no <", value, "trxOrderNo");
            return (Criteria) this;
        }

        public Criteria andTrxOrderNoLessThanOrEqualTo(String value) {
            addCriterion("trx_order_no <=", value, "trxOrderNo");
            return (Criteria) this;
        }

        public Criteria andTrxOrderNoLike(String value) {
            addCriterion("trx_order_no like", value, "trxOrderNo");
            return (Criteria) this;
        }

        public Criteria andTrxOrderNoNotLike(String value) {
            addCriterion("trx_order_no not like", value, "trxOrderNo");
            return (Criteria) this;
        }

        public Criteria andTrxOrderNoIn(List<String> values) {
            addCriterion("trx_order_no in", values, "trxOrderNo");
            return (Criteria) this;
        }

        public Criteria andTrxOrderNoNotIn(List<String> values) {
            addCriterion("trx_order_no not in", values, "trxOrderNo");
            return (Criteria) this;
        }

        public Criteria andTrxOrderNoBetween(String value1, String value2) {
            addCriterion("trx_order_no between", value1, value2, "trxOrderNo");
            return (Criteria) this;
        }

        public Criteria andTrxOrderNoNotBetween(String value1, String value2) {
            addCriterion("trx_order_no not between", value1, value2, "trxOrderNo");
            return (Criteria) this;
        }

        public Criteria andTrxNoIsNull() {
            addCriterion("trx_no is null");
            return (Criteria) this;
        }

        public Criteria andTrxNoIsNotNull() {
            addCriterion("trx_no is not null");
            return (Criteria) this;
        }

        public Criteria andTrxNoEqualTo(String value) {
            addCriterion("trx_no =", value, "trxNo");
            return (Criteria) this;
        }

        public Criteria andTrxNoNotEqualTo(String value) {
            addCriterion("trx_no <>", value, "trxNo");
            return (Criteria) this;
        }

        public Criteria andTrxNoGreaterThan(String value) {
            addCriterion("trx_no >", value, "trxNo");
            return (Criteria) this;
        }

        public Criteria andTrxNoGreaterThanOrEqualTo(String value) {
            addCriterion("trx_no >=", value, "trxNo");
            return (Criteria) this;
        }

        public Criteria andTrxNoLessThan(String value) {
            addCriterion("trx_no <", value, "trxNo");
            return (Criteria) this;
        }

        public Criteria andTrxNoLessThanOrEqualTo(String value) {
            addCriterion("trx_no <=", value, "trxNo");
            return (Criteria) this;
        }

        public Criteria andTrxNoLike(String value) {
            addCriterion("trx_no like", value, "trxNo");
            return (Criteria) this;
        }

        public Criteria andTrxNoNotLike(String value) {
            addCriterion("trx_no not like", value, "trxNo");
            return (Criteria) this;
        }

        public Criteria andTrxNoIn(List<String> values) {
            addCriterion("trx_no in", values, "trxNo");
            return (Criteria) this;
        }

        public Criteria andTrxNoNotIn(List<String> values) {
            addCriterion("trx_no not in", values, "trxNo");
            return (Criteria) this;
        }

        public Criteria andTrxNoBetween(String value1, String value2) {
            addCriterion("trx_no between", value1, value2, "trxNo");
            return (Criteria) this;
        }

        public Criteria andTrxNoNotBetween(String value1, String value2) {
            addCriterion("trx_no not between", value1, value2, "trxNo");
            return (Criteria) this;
        }

        public Criteria andTrxOrderNameIsNull() {
            addCriterion("trx_order_name is null");
            return (Criteria) this;
        }

        public Criteria andTrxOrderNameIsNotNull() {
            addCriterion("trx_order_name is not null");
            return (Criteria) this;
        }

        public Criteria andTrxOrderNameEqualTo(String value) {
            addCriterion("trx_order_name =", value, "trxOrderName");
            return (Criteria) this;
        }

        public Criteria andTrxOrderNameNotEqualTo(String value) {
            addCriterion("trx_order_name <>", value, "trxOrderName");
            return (Criteria) this;
        }

        public Criteria andTrxOrderNameGreaterThan(String value) {
            addCriterion("trx_order_name >", value, "trxOrderName");
            return (Criteria) this;
        }

        public Criteria andTrxOrderNameGreaterThanOrEqualTo(String value) {
            addCriterion("trx_order_name >=", value, "trxOrderName");
            return (Criteria) this;
        }

        public Criteria andTrxOrderNameLessThan(String value) {
            addCriterion("trx_order_name <", value, "trxOrderName");
            return (Criteria) this;
        }

        public Criteria andTrxOrderNameLessThanOrEqualTo(String value) {
            addCriterion("trx_order_name <=", value, "trxOrderName");
            return (Criteria) this;
        }

        public Criteria andTrxOrderNameLike(String value) {
            addCriterion("trx_order_name like", value, "trxOrderName");
            return (Criteria) this;
        }

        public Criteria andTrxOrderNameNotLike(String value) {
            addCriterion("trx_order_name not like", value, "trxOrderName");
            return (Criteria) this;
        }

        public Criteria andTrxOrderNameIn(List<String> values) {
            addCriterion("trx_order_name in", values, "trxOrderName");
            return (Criteria) this;
        }

        public Criteria andTrxOrderNameNotIn(List<String> values) {
            addCriterion("trx_order_name not in", values, "trxOrderName");
            return (Criteria) this;
        }

        public Criteria andTrxOrderNameBetween(String value1, String value2) {
            addCriterion("trx_order_name between", value1, value2, "trxOrderName");
            return (Criteria) this;
        }

        public Criteria andTrxOrderNameNotBetween(String value1, String value2) {
            addCriterion("trx_order_name not between", value1, value2, "trxOrderName");
            return (Criteria) this;
        }

        public Criteria andOrderAmountIsNull() {
            addCriterion("order_amount is null");
            return (Criteria) this;
        }

        public Criteria andOrderAmountIsNotNull() {
            addCriterion("order_amount is not null");
            return (Criteria) this;
        }

        public Criteria andOrderAmountEqualTo(BigDecimal value) {
            addCriterion("order_amount =", value, "orderAmount");
            return (Criteria) this;
        }

        public Criteria andOrderAmountNotEqualTo(BigDecimal value) {
            addCriterion("order_amount <>", value, "orderAmount");
            return (Criteria) this;
        }

        public Criteria andOrderAmountGreaterThan(BigDecimal value) {
            addCriterion("order_amount >", value, "orderAmount");
            return (Criteria) this;
        }

        public Criteria andOrderAmountGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("order_amount >=", value, "orderAmount");
            return (Criteria) this;
        }

        public Criteria andOrderAmountLessThan(BigDecimal value) {
            addCriterion("order_amount <", value, "orderAmount");
            return (Criteria) this;
        }

        public Criteria andOrderAmountLessThanOrEqualTo(BigDecimal value) {
            addCriterion("order_amount <=", value, "orderAmount");
            return (Criteria) this;
        }

        public Criteria andOrderAmountIn(List<BigDecimal> values) {
            addCriterion("order_amount in", values, "orderAmount");
            return (Criteria) this;
        }

        public Criteria andOrderAmountNotIn(List<BigDecimal> values) {
            addCriterion("order_amount not in", values, "orderAmount");
            return (Criteria) this;
        }

        public Criteria andOrderAmountBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("order_amount between", value1, value2, "orderAmount");
            return (Criteria) this;
        }

        public Criteria andOrderAmountNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("order_amount not between", value1, value2, "orderAmount");
            return (Criteria) this;
        }

        public Criteria andProductDisIsNull() {
            addCriterion("product_dis is null");
            return (Criteria) this;
        }

        public Criteria andProductDisIsNotNull() {
            addCriterion("product_dis is not null");
            return (Criteria) this;
        }

        public Criteria andProductDisEqualTo(String value) {
            addCriterion("product_dis =", value, "productDis");
            return (Criteria) this;
        }

        public Criteria andProductDisNotEqualTo(String value) {
            addCriterion("product_dis <>", value, "productDis");
            return (Criteria) this;
        }

        public Criteria andProductDisGreaterThan(String value) {
            addCriterion("product_dis >", value, "productDis");
            return (Criteria) this;
        }

        public Criteria andProductDisGreaterThanOrEqualTo(String value) {
            addCriterion("product_dis >=", value, "productDis");
            return (Criteria) this;
        }

        public Criteria andProductDisLessThan(String value) {
            addCriterion("product_dis <", value, "productDis");
            return (Criteria) this;
        }

        public Criteria andProductDisLessThanOrEqualTo(String value) {
            addCriterion("product_dis <=", value, "productDis");
            return (Criteria) this;
        }

        public Criteria andProductDisLike(String value) {
            addCriterion("product_dis like", value, "productDis");
            return (Criteria) this;
        }

        public Criteria andProductDisNotLike(String value) {
            addCriterion("product_dis not like", value, "productDis");
            return (Criteria) this;
        }

        public Criteria andProductDisIn(List<String> values) {
            addCriterion("product_dis in", values, "productDis");
            return (Criteria) this;
        }

        public Criteria andProductDisNotIn(List<String> values) {
            addCriterion("product_dis not in", values, "productDis");
            return (Criteria) this;
        }

        public Criteria andProductDisBetween(String value1, String value2) {
            addCriterion("product_dis between", value1, value2, "productDis");
            return (Criteria) this;
        }

        public Criteria andProductDisNotBetween(String value1, String value2) {
            addCriterion("product_dis not between", value1, value2, "productDis");
            return (Criteria) this;
        }

        public Criteria andTrxStatusIsNull() {
            addCriterion("trx_status is null");
            return (Criteria) this;
        }

        public Criteria andTrxStatusIsNotNull() {
            addCriterion("trx_status is not null");
            return (Criteria) this;
        }

        public Criteria andTrxStatusEqualTo(String value) {
            addCriterion("trx_status =", value, "trxStatus");
            return (Criteria) this;
        }

        public Criteria andTrxStatusNotEqualTo(String value) {
            addCriterion("trx_status <>", value, "trxStatus");
            return (Criteria) this;
        }

        public Criteria andTrxStatusGreaterThan(String value) {
            addCriterion("trx_status >", value, "trxStatus");
            return (Criteria) this;
        }

        public Criteria andTrxStatusGreaterThanOrEqualTo(String value) {
            addCriterion("trx_status >=", value, "trxStatus");
            return (Criteria) this;
        }

        public Criteria andTrxStatusLessThan(String value) {
            addCriterion("trx_status <", value, "trxStatus");
            return (Criteria) this;
        }

        public Criteria andTrxStatusLessThanOrEqualTo(String value) {
            addCriterion("trx_status <=", value, "trxStatus");
            return (Criteria) this;
        }

        public Criteria andTrxStatusLike(String value) {
            addCriterion("trx_status like", value, "trxStatus");
            return (Criteria) this;
        }

        public Criteria andTrxStatusNotLike(String value) {
            addCriterion("trx_status not like", value, "trxStatus");
            return (Criteria) this;
        }

        public Criteria andTrxStatusIn(List<String> values) {
            addCriterion("trx_status in", values, "trxStatus");
            return (Criteria) this;
        }

        public Criteria andTrxStatusNotIn(List<String> values) {
            addCriterion("trx_status not in", values, "trxStatus");
            return (Criteria) this;
        }

        public Criteria andTrxStatusBetween(String value1, String value2) {
            addCriterion("trx_status between", value1, value2, "trxStatus");
            return (Criteria) this;
        }

        public Criteria andTrxStatusNotBetween(String value1, String value2) {
            addCriterion("trx_status not between", value1, value2, "trxStatus");
            return (Criteria) this;
        }

        public Criteria andTrxFormIsNull() {
            addCriterion("trx_form is null");
            return (Criteria) this;
        }

        public Criteria andTrxFormIsNotNull() {
            addCriterion("trx_form is not null");
            return (Criteria) this;
        }

        public Criteria andTrxFormEqualTo(String value) {
            addCriterion("trx_form =", value, "trxForm");
            return (Criteria) this;
        }

        public Criteria andTrxFormNotEqualTo(String value) {
            addCriterion("trx_form <>", value, "trxForm");
            return (Criteria) this;
        }

        public Criteria andTrxFormGreaterThan(String value) {
            addCriterion("trx_form >", value, "trxForm");
            return (Criteria) this;
        }

        public Criteria andTrxFormGreaterThanOrEqualTo(String value) {
            addCriterion("trx_form >=", value, "trxForm");
            return (Criteria) this;
        }

        public Criteria andTrxFormLessThan(String value) {
            addCriterion("trx_form <", value, "trxForm");
            return (Criteria) this;
        }

        public Criteria andTrxFormLessThanOrEqualTo(String value) {
            addCriterion("trx_form <=", value, "trxForm");
            return (Criteria) this;
        }

        public Criteria andTrxFormLike(String value) {
            addCriterion("trx_form like", value, "trxForm");
            return (Criteria) this;
        }

        public Criteria andTrxFormNotLike(String value) {
            addCriterion("trx_form not like", value, "trxForm");
            return (Criteria) this;
        }

        public Criteria andTrxFormIn(List<String> values) {
            addCriterion("trx_form in", values, "trxForm");
            return (Criteria) this;
        }

        public Criteria andTrxFormNotIn(List<String> values) {
            addCriterion("trx_form not in", values, "trxForm");
            return (Criteria) this;
        }

        public Criteria andTrxFormBetween(String value1, String value2) {
            addCriterion("trx_form between", value1, value2, "trxForm");
            return (Criteria) this;
        }

        public Criteria andTrxFormNotBetween(String value1, String value2) {
            addCriterion("trx_form not between", value1, value2, "trxForm");
            return (Criteria) this;
        }

        public Criteria andTrxToIsNull() {
            addCriterion("trx_to is null");
            return (Criteria) this;
        }

        public Criteria andTrxToIsNotNull() {
            addCriterion("trx_to is not null");
            return (Criteria) this;
        }

        public Criteria andTrxToEqualTo(String value) {
            addCriterion("trx_to =", value, "trxTo");
            return (Criteria) this;
        }

        public Criteria andTrxToNotEqualTo(String value) {
            addCriterion("trx_to <>", value, "trxTo");
            return (Criteria) this;
        }

        public Criteria andTrxToGreaterThan(String value) {
            addCriterion("trx_to >", value, "trxTo");
            return (Criteria) this;
        }

        public Criteria andTrxToGreaterThanOrEqualTo(String value) {
            addCriterion("trx_to >=", value, "trxTo");
            return (Criteria) this;
        }

        public Criteria andTrxToLessThan(String value) {
            addCriterion("trx_to <", value, "trxTo");
            return (Criteria) this;
        }

        public Criteria andTrxToLessThanOrEqualTo(String value) {
            addCriterion("trx_to <=", value, "trxTo");
            return (Criteria) this;
        }

        public Criteria andTrxToLike(String value) {
            addCriterion("trx_to like", value, "trxTo");
            return (Criteria) this;
        }

        public Criteria andTrxToNotLike(String value) {
            addCriterion("trx_to not like", value, "trxTo");
            return (Criteria) this;
        }

        public Criteria andTrxToIn(List<String> values) {
            addCriterion("trx_to in", values, "trxTo");
            return (Criteria) this;
        }

        public Criteria andTrxToNotIn(List<String> values) {
            addCriterion("trx_to not in", values, "trxTo");
            return (Criteria) this;
        }

        public Criteria andTrxToBetween(String value1, String value2) {
            addCriterion("trx_to between", value1, value2, "trxTo");
            return (Criteria) this;
        }

        public Criteria andTrxToNotBetween(String value1, String value2) {
            addCriterion("trx_to not between", value1, value2, "trxTo");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("create_time is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("create_time is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterion("create_time =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterion("create_time <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterion("create_time >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("create_time >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterion("create_time <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("create_time <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterion("create_time in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterion("create_time not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion("create_time between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("create_time not between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNull() {
            addCriterion("update_time is null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNotNull() {
            addCriterion("update_time is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeEqualTo(Date value) {
            addCriterion("update_time =", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotEqualTo(Date value) {
            addCriterion("update_time <>", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThan(Date value) {
            addCriterion("update_time >", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("update_time >=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThan(Date value) {
            addCriterion("update_time <", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
            addCriterion("update_time <=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIn(List<Date> values) {
            addCriterion("update_time in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotIn(List<Date> values) {
            addCriterion("update_time not in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeBetween(Date value1, Date value2) {
            addCriterion("update_time between", value1, value2, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
            addCriterion("update_time not between", value1, value2, "updateTime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}